<%--
  Created by IntelliJ IDEA.
  User: luowenjun
  Date: 5/23/023
  Time: 19:56:42
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html>
<%@include file="./resources/common/common.jsp" %>
<head>
    <title>测试select2-4.1.0</title>
    <style>
        select{
            width: 500px;
        }
    </style>
</head>
<body>
<div>
    <div id="select2">
        <%--<select class="form-control" id="id_select2_demo1" multiple="multiple">
            <option value="1">OPS-COFFEE-A</option>
            <option value="3">OPS-COFFEE-C</option>
            <option value="4">OPS-COFFEE-D</option>
            <option value="5">OPS-COFFEE-E</option>
        </select>--%>

        <table>
            <tr>
                <td>测试单选</td>
                <td>
                    <select id="id_select2_demo1" >
                        <option value="0">--请选择</option>
                        <option value="1">OPS-COFFEE-A</option>
                        <option value="3">OPS-COFFEE-C</option>
                        <option value="4">OPS-COFFEE-D</option>
                        <option value="5">OPS-COFFEE-E</option>
                    </select>
                </td>
            </tr>
        </table>

    </div>
</div>

</body>
</html>
<script>
    var data = {};


    $ (function () {
        $('.id_select2_demo1').select2();
    });
</script>
